import fetch from '@/config/fetch'

// 营业额统计
export const getBusinessStatistic = data => fetch('/reports/turnover_stats', data, 'POST');
// 客户销售榜
export const customBang = data => fetch('/reports/customer_sales_customer_list', data, 'POST');
// 单个客户销售额统计
export const customBangSingle = data => fetch('/reports/v1_sales_customer_detail', data, 'POST');
// 供货商采购分析
export const supplierBuy = data => fetch('/reports/pc_purchase_suppliers_list', data, 'POST');
// 单个供货商采购分析
export const supplierBuySingle = data => fetch('/reports/v1_purchase_suppliers_detail', data, 'POST');
// 商品采销分析
export const productsBuy = data => fetch('/reports/goods_purchase_goods_list', data, 'POST');
export const productsBuySingle = data => fetch('/reports/v1_purchase_goods_detail', data, 'POST');
export const productSales = data => fetch('/reports/goods_sales_goods_list', data, 'POST');
export const productSaleSingle = data => fetch('/reports/v1_sales_goods_detail', data, 'POST');
// 日常收支统计
export const getReceiveAndPay = data => fetch('/reports/exp_expenditure_stats_list', data, 'POST');
// 日常收支统计--员工工资
export const getStaffSalary = data => fetch('/reports/exp_expenditure_salary_stats_list', data, 'POST');

// 员工提成统计
export const staffCommission = data => fetch('/reports/pc_employee_commission_stats_list', data, 'POST');
// 库存统计	
export const stockStatistic = data => fetch('/reports/pc_inventory_stats', data, 'POST');
// 考勤统计
export const attendances = data => fetch('/reports/pc_attendance_stats_list', data, 'POST');

// 账户流水汇总
export const getAccountList = data => fetch('/commons/payment_account_list', data, 'GET');
// 修改账号当前余额
export const updateAccount = data => fetch('/commons/update_account_current_money', data, 'POST');
// 账号间转账
export const transferAccount = data => fetch('/commons/payment_account_transfer', data, 'POST');
// 流水记录列表
export const getFlowList = data => fetch('/commons/payment_record_list', data, 'GET');
// 流水记录列表统计
export const getFlowReport = data => fetch('/commons/get_payment_record_list_report', data, 'GET');

// 客户对账单
export const shouldReceive = data => fetch('/reports/order_receivables_stats_list', data, 'POST');
// 应收欠款
export const customCheckOrder = data => fetch('/customer_depends/get_customer_current_money_report', data, 'GET');
// 供货商对账单
export const shouldPayment = data => fetch('/reports/order_account_payable_list', data, 'POST');
// 应付欠款
export const supplierCheckOrder = data => fetch('/erp_depends/get_supplier_current_money_report/', data, 'GET');
// 查询库存流水
export const getStockingFlow = data => fetch('/inventory_dep/get_inventory_record_detail_list/', data);